package com.danbay.cloud.account.service.api;

import com.danbay.cloud.account.dto.ResourceDto;
import com.danbay.framework.springnc.annotation.AutoController;
import com.danbay.framework.springnc.annotation.RequestMapping;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author SJG
 *         2018/1/11.
 */
@AutoController
@RequestMapping("/account-service/resource")
@Api("需要授权的相关资源服务接口")
public interface IResourceService {

    /**
     * 取所有菜单
     *
     * @return 菜单列表
     */
    @ApiOperation(value = "取所有菜单")
    @RequestMapping(value = "/getMenus", method = RequestMethod.GET)
    List<ResourceDto> allMenus();

    /**
     * 取所有按钮
     * @return 按钮列表
     */
    @ApiOperation(value = "取所有按钮")
    @RequestMapping(value = "/getButtons", method = RequestMethod.GET)
    List<ResourceDto> allButtons();

}
